<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/tag_lib.jsp"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>스프링 테스트 예제</title>
	</head>
	<body>
	    Board List<br/><br />
        <hr />
        <c:if test="${!empty boardList}">
            <table>
                <thead>
                    <tr>
                        <td>Board No</td>
                        <td>Board Name</td>
                        <td>Board Type</td>
                        <td>Creator No</td>
                        <td>Created Datetime</td>
                        <td>Go!</td>
                    </tr>
                </thead>
                <tbody>
	            <c:forEach var="board" items="${boardList}">
	                <tr>
                        <td>${board.boardNo}</td>
                        <td><a href="./read.jude?boardNo=${board.boardNo}">${board.boardName}</a></td>
                        <td>${board.boardType}</td>
                        <td>${board.creatorNo}</td>
                        <td>${board.createdDatetime}</td>
                        <td><a href="../article/list.jude?boardNo=${board.boardNo}">바로가기</a></td>
	                </tr>
	            </c:forEach>    
                </tbody>
            </table>
        </c:if>
        <c:if test="${empty boardList}">
            <h1>결과가 없습니다.</h1>
        </c:if>
        <hr />
        <a href="./createForm.jude">Create board</a>
	</body>
</html>